//
//  HJGiftCell.m
//  project
//
//  Created by hu on 2019/3/27.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJGiftCell.h"
#import "HJChatTextMsgModel.h"
#import "YFJourneyModel.h"
@interface HJGiftCell ()
/*
 * 切圆角 父视图
 */
@property (weak, nonatomic) IBOutlet UIView *subView;

/*
 * 查看
 */
@property (weak, nonatomic) IBOutlet UIButton *giftLabel;
/*
 * 行程想法
 */
@property (weak, nonatomic) IBOutlet UIButton *sendTitleBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *giftBtnW;
@end

@implementation HJGiftCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.subView rounded:UIRectCornerAllCorners radius:self.subView.height/2];
    @weakify(self)
    [[self.giftLabel rac_signalForControlEvents:UIControlEventTouchUpInside]subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self)
        self.editBtnClickedBlock();
    }];
}


-(void)loadData:(HJSimpleModel *)model {
    NSString * string = [NSString stringWithFormat:@"%@有更好的行程想法,",model.data.user.nickName];
    [self.sendTitleBtn setTitle:string forState:0];
}

@end
